//  Author:
//       Daniel Großer <olav.daniel.grosser@googlemail.com>
//  
//  Copyright (c) 2012 Copyright (C) 2012 by Daniel Großer. This Code is under GNU LGPL 3.0
// 
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU Lesser General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
// 
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Lesser General Public License for more details.
// 
//  You should have received a copy of the GNU Lesser General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.

namespace Beauty.Contract
{
    /// <summary>
    /// This interface MUST be implemented by all classes that can act as
    /// AST nodes. AST nodes are created by resolving a grammar on the
    /// input (parsing). The interface can be used to track the position
    /// of each AST node in the source.
    /// </summary>
    public interface INode : ISourcePart
    {
        /// <summary>
        /// Get/Set the parent AST node.
        /// </summary>
        INode Parent { get; set; }
    }
}
